package org.hxzon.tapestry5.util;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.tapestry5.ioc.services.Coercion;

public class CollectionToListCoercion implements Coercion<Collection<Object>, List<Object>> {

    public List<Object> coerce(Collection<Object> input) {
        List<Object> list = new ArrayList<Object>();
        for (Object item : input) {
            list.add(item);
        }
        return list;
    }
}
